﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.MODEL.FoundationModel;
using MINERP.COM;

namespace MINERP.MODEL.NewPhotoRindGrid
{
    /// <summary>
    /// 分片时用到的产品信息类
    /// </summary>
    public class OrderInfo_Grid : OrderInfo_Info
    {
        public string ShopName { get; set; }
        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime OrderTime { get; set; }
        /// <summary>
        /// 客户要求的取件时间
        /// </summary>
        public DateTime FetchTime { get; set; }


        public List<PhotoInfo_Info> PhotoS { get; set; }//相应的照片信息 

        /// <summary>
        /// 产品的加急级别
        /// </summary>
        public int OrderPriority { get; set; }

        public int PhotoCount
        {
            get
            {
                if (PhotoS != null)
                {


                    return PhotoS.Count();
                }
                else
                {
                    return 0;
                }

            }
        }//照片总数
        public int InGridCount
        {
            get
            {
                if (PhotoS != null)
                {

                    return PhotoS.Count(p => p.Status == (int)PhotoStatus.FenPian);
                }
                else
                {
                    return 0;
                }
            }
        }//进格子的总数

        public string ProductOrderInBag { get; set; }

        public bool IsPrintThumbnail { get; set; }//产品是否需要打印缩略图

    }


}
